import java.util.Vector;
/**
 * 
 * @author sgillet
 *	This class holds all Positions that are in a tunnel.
 */

public class Tunnel {
	private Vector<Position> tunnelStarts;
	
	public Tunnel(Position f)
	{
		this();
		tunnelStarts.add(f.copy());
	}
	
	public Tunnel()
	{
		tunnelStarts = new Vector<Position>();
	}
	
	public void addTunnelPosition(Position p)
	{
		tunnelStarts.add(p.copy());
	}
	
	public void addTunnelPosition(Vector<Position> p)
	{
		for (int i = 0; i < p.size(); i++)
		{
			tunnelStarts.add(p.get(i).copy());
		}
		
	}
	
	public Vector<Position> getInTunnels()
	{
		return this.tunnelStarts;
	}
}
